package com.xiehao.springbootmybaits.dao;

import com.xiehao.springbootmybaits.SqlContext;
import com.xiehao.springbootmybaits.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

public interface BookMapper {


    List<Book> selectList();


    void del(Integer[] ids);

    int addBook(Book book);

    @SelectProvider(method = "searchBookSql",type = SqlContext.class)
    List<Book> searchBook(Book book);
}
